The Little Schemer Env

Table of Contents

Guile

apt-get install guile

The Little Schemer

there are three functions regularly used in The Little Schemer that are not part of the Scheme language. You won’t want to type these in each interactive session, so make a file called tls.ss with the following code:

 (define atom?
  (lambda (x)
    (and (not (pair? x)) (not (null? x)))))

(define add1
  (lambda (x)
    (+ x 1)))

(define sub1
  (lambda (x)
    (- x 1)))

Now just start each interactive session with (load "tls.ss").

Author: Shi Shougang

Created: 2015-03-05 Thu 23:20

Emacs 24.3.1 (Org mode 8.2.10)

Validate